Optimal. Leaf size=236 \[ \frac {(-1)^{3/4} a^{5/2} (2 A-5 i B) \text {ArcTan}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {(4+4 i) a^{5/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.54, antiderivative size = 236, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 10, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {4326, 3674,
3675, 3682, 3625, 211, 3680, 65, 223, 209} \begin {gather*} \frac {(-1)^{3/4} a^{5/2} (2 A-5 i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \text {ArcTan}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {(4+4 i) a^{5/2} (A-i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a^2 (-B+2 i A) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 209
Rule 211
Rule 223
Rule 3625
Rule 3674
Rule 3675
Rule 3680
Rule 3682
Rule 4326
Rubi steps
\begin {align*} \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx &=\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x))}{\tan ^{\frac {3}{2}}(c+d x)} \, dx\\ &=-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a+i a \tan (c+d x))^{3/2} \left (\frac {1}{2} a (4 i A+B)+\frac {1}{2} a (2 A+i B) \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx\\ &=\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)} \left (\frac {3}{4} a^2 (2 i A+B)-\frac {1}{4} a^2 (2 A-5 i B) \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx\\ &=\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (4 a^2 (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx-\frac {1}{2} \left (a (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx\\ &=\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (8 i a^4 (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {x} \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac {(4-4 i) a^{5/2} (i A+B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+i a x^2}} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {(4-4 i) a^{5/2} (i A+B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-i a x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}\\ &=\frac {\sqrt [4]{-1} a^{5/2} (2 i A+5 B) \tan ^{-1}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {(4-4 i) a^{5/2} (i A+B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 5.72, size = 387, normalized size = 1.64 \begin {gather*} \frac {\left (\sqrt {2} e^{-3 i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {\frac {i \left (1+e^{2 i (c+d x)}\right )}{-1+e^{2 i (c+d x)}}} \left (32 (A-i B) \log \left (e^{i (c+d x)}+\sqrt {-1+e^{2 i (c+d x)}}\right )-\sqrt {2} (2 A-5 i B) \left (\log \left (1-3 e^{2 i (c+d x)}-2 \sqrt {2} e^{i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}}\right )-\log \left (1-3 e^{2 i (c+d x)}+2 \sqrt {2} e^{i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}}\right )\right )\right )-\frac {8 (B+2 A \cot (c+d x)) \sqrt {\sec (c+d x)} (\cos (2 c)-i \sin (2 c))}{\sqrt {\cot (c+d x)} (\cos (d x)+i \sin (d x))^2}\right ) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x))}{8 d \sec ^{\frac {7}{2}}(c+d x) (A \cos (c+d x)+B \sin (c+d x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1895 vs. \(2 (193 ) = 386\).
time = 65.30, size = 1896, normalized size = 8.03
method | result | size |
default | \(\text {Expression too large to display}\) | \(1896\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 849 vs. \(2 (182) = 364\).
time = 1.35, size = 849, normalized size = 3.60 \begin {gather*} \frac {8 \, \sqrt {2} \sqrt {-\frac {{\left (-i \, A^{2} - 2 \, A B + i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left ({\left (A - i \, B\right )} a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {-\frac {{\left (-i \, A^{2} - 2 \, A B + i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{{\left (-i \, A - B\right )} a^{2}}\right ) - 8 \, \sqrt {2} \sqrt {-\frac {{\left (-i \, A^{2} - 2 \, A B + i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (\frac {4 \, {\left ({\left (A - i \, B\right )} a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {-\frac {{\left (-i \, A^{2} - 2 \, A B + i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (-i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{{\left (-i \, A - B\right )} a^{2}}\right ) - 4 \, \sqrt {2} {\left ({\left (2 \, A - i \, B\right )} a^{2} e^{\left (3 i \, d x + 3 i \, c\right )} + {\left (2 \, A + i \, B\right )} a^{2} e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} - \sqrt {\frac {{\left (4 i \, A^{2} + 20 \, A B - 25 i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (-\frac {16 \, {\left (3 \, {\left (2 i \, A + 5 \, B\right )} a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + {\left (-2 i \, A - 5 \, B\right )} a^{3} + 2 \, \sqrt {2} \sqrt {\frac {{\left (4 i \, A^{2} + 20 \, A B - 25 i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (3 i \, d x + 3 i \, c\right )} - d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{{\left (2 i \, A + 5 \, B\right )} a}\right ) + \sqrt {\frac {{\left (4 i \, A^{2} + 20 \, A B - 25 i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \log \left (-\frac {16 \, {\left (3 \, {\left (2 i \, A + 5 \, B\right )} a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + {\left (-2 i \, A - 5 \, B\right )} a^{3} - 2 \, \sqrt {2} \sqrt {\frac {{\left (4 i \, A^{2} + 20 \, A B - 25 i \, B^{2}\right )} a^{5}}{d^{2}}} {\left (d e^{\left (3 i \, d x + 3 i \, c\right )} - d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{{\left (2 i \, A + 5 \, B\right )} a}\right )}{4 \, {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\mathrm {cot}\left (c+d\,x\right )}^{3/2}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________